package com.ttdj.cmel;

import android.app.Application;
import android.content.Context;

import com.umeng.commonsdk.UMConfigure;

public class CMELApplication extends Application {

    public static final String TAG = "CEML";

    //得到代表我们的应用程序的类，使用它可以获得当前应用的主题和资源文件以及最常用的上下文
    private static CMELApplication myAppMarketApplication;
    public static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        myAppMarketApplication = this;
        mContext = getApplicationContext();
        UMConfigure.init(mContext, "5b4d575bf43e480ca1000053", "TTDJ", UMConfigure.DEVICE_TYPE_PHONE, null);
//        UMConfigure.setLogEnabled(true);
    }

    public synchronized static Context getApplication() {
        return myAppMarketApplication;
    }
}
